package cn.soft863.users.service.impl;

import java.util.List;
import java.util.Map;
import cn.soft863.common.util.PageInfoUtil;
import cn.soft863.users.dao.IAConsumeHistoryDao;
import cn.soft863.users.dao.impl.AConsumeHistoryDaoImpl;
import cn.soft863.users.pojo.AConsumeHistory;
import cn.soft863.users.service.ConsumeService;


/**
 * 用户Service的实现类
 * @author 902-B-Book
 *
 */
public class ConsumeServiceImpl implements ConsumeService
{
	/**
	 * 持有Dao的接口,如何赋值
	 */
	private IAConsumeHistoryDao consumeDao = new AConsumeHistoryDaoImpl();
	
	@Override
	public int saveOneconsumeService(AConsumeHistory consume)
	{
		return this.consumeDao.saveOneDao(consume);
	}

	@Override
	public List<AConsumeHistory> findCondListconsumeService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap)
	{
		return this.consumeDao.findCondListDao(pageInfoUtil,condMap);
	}

	@Override
	public AConsumeHistory findOneconsumeService(Map<String, Object> condMap)
	{
		return this.consumeDao.findOneDao(condMap);
	}

	@Override
	public int updateOneconsumeService(AConsumeHistory consume)
	{
		return this.consumeDao.updateOneDao(consume);
	}


}
